<?php

class Jobseeker_HomeController extends Zend_Controller_Action
{
	private $identity;
	public function init()
	{
		$authData = Zend_Auth::getInstance ()->getStorage ()->read ();
		//Zend_Registry::get('logger')->debug($authData);
		if (is_array($authData) and $authData['identity'] != 'anon' and $authData) {
			$this->identity = $authData['identity'];
		}
		unset($authData);
	}
	
	public function indexAction()
	{
		$this->view->assign('identity',$this->identity);
	}
}